#ifndef SEARCHBOX_H
#define SEARCHBOX_H

#include <QDialog>

#define SF_NONE 0
#define SF_INTEL 10
#define SF_AMD 20

namespace Ui {
class SearchBox;
}

class SearchBox : public QDialog
{
    Q_OBJECT

public:
    explicit SearchBox(QWidget *parent = nullptr);
    ~SearchBox();

signals:
    void request(int flag,const QString &kw);

private slots:
    void on_AMD_toggled(bool checked);
    void on_intel_toggled(bool checked);
    void on_kw_returnPressed();

private:
    Ui::SearchBox *ui;

    int flag;
};

#endif // SEARCHBOX_H
